package Jtext;
import javax.swing.JFrame;
import javax.swing.JTextField;

public class Jtext {

    public static void main(String[] args) {    JFrame form = new JFrame();

    form.setSize(300, 300);
form.setTitle("Formulário");

JTextField text = new JTextField("Digite o que quiser: ", 15);

    form.add(text);

        form.setVisible(true);
    
    form.pack();

}
}

